package com.chalmers.foa.gamemodel.events;

import java.util.List;

import com.chalmers.foa.gamemodel.events.impl.EventChain;
import com.chalmers.foa.gamemodel.events.impl.EventRespawn;
import com.chalmers.foa.gamemodel.events.impl.EventSwitch;
import com.chalmers.foa.gamemodel.gameobjects.IGameObject;

public class EventFactory {
	public static enum EventType {
		Switch, Chain,Respawn;
	}

	public static IEvent getEvent(EventType type, int _b, boolean _c,
			List<IGameObject> objects) {
		switch (type) {
		case Switch:
			return new EventSwitch(objects, _b, _c);
		case Chain:
			return new EventChain(objects, _b, _c);
		case Respawn:
			return new EventRespawn(objects, _b, _c);
		}
		return null;
	}
}
